﻿namespace JavaScriptEngineSwitcher.ChakraCore.JsRt
{
	/// <summary>
	/// Allocation callback event type
	/// </summary>
	internal enum JsMemoryEventType
	{
		/// <summary>
		/// Indicates a request for memory allocation
		/// </summary>
		Allocate = 0,

		/// <summary>
		/// Indicates a memory freeing event
		/// </summary>
		Free = 1,

		/// <summary>
		/// Indicates a failed allocation event
		/// </summary>
		Failure = 2
	}
}